#!/bin/python
import sys
def computeCDF():
   input = open(sys.argv[1], "r");
   dict={};
   count=0;

   while (1):
      line = input.readline();
      if not line:
         break;
      val = float(line);
      if not (val in dict):
         dict[val]=1;
      else:
         dict[val] = dict[val]+1;
      count = count + 1;

   ks = sorted(dict.keys());
   n = 0;
   for k in ks:
      n = n + dict[k];
      print "%f %f"%(k,float(n)/count);

if __name__ == '__main__':
   computeCDF();